<script type="text/html" template>
    <link rel="stylesheet" href="/src/views/login/css/platform.css?v={{ Math.random() }}" media="all">
</script>
<div class="login-out">
    <img src="/src/images/tuic.png" style="width: 15px;margin-right: 5px;">退出
</div>
<div class="loginlogo">
	<div class="sysNameLogo">
		<p>漯河市三品一特跨部门综合监管平台</p>
		<span class="">Luohe City Three Products One Special Cross Departmental Comprehensive Supervision Platform</span>
	</div>
</div>
<div class="container">
    <span></span>
    <span></span>
    <span></span>
    <div class="selectBox">
        <div class="plttit">系统选择</div>
        <div class="fgxhr"></div>
        <div class="selectpageright social-btns"></div>
    </div>
</div>

<!-- <div class="floatWin">
    <img src="/src/images/file.png" width="60" alt="" srcset="" id="downfile"> 文件下载
</div> -->
<script>
    layui.extend({
        THREE: '{/}/src/lib/extend/three.min'
    }).define(["admin", "platform", "THREE"], function () {
        var $ = layui.jquery,
            admin = layui.admin,
            THREE = layui.THREE;
        layui.platform.init();

        $('.login-out').click(function () {
            admin.exit();
        });

        function pageZoom(classname) {
            var bodyHeight = document.body.clientHeight;
            document.getElementsByClassName(classname)[0].style.webkitTransform = "scale(" + (bodyHeight / 1350) + ")"
        }
        window.addEventListener("message", function (event) {
            if (event.data == 'JD_logout') {
                // 跳转到登录页
                window.layui.sessionData('layuiAdminsession', '{}');
                window.sessionStorage.removeItem('layuiAdminplatform');
                window.local.href = 'http://222.143.144.220:8082/index.html'

            }
            if (event.data == 'JD_goToPortal') {
                // 跳转到portal页
                window.layui.sessionData('layuiAdmindpzs', '{}');
                window.local.href = 'http://222.143.144.220:8082/index.html'
            }
        }, false);
    });
</script>